/**
 * 
 */
package officeserver.log_error;

import java.util.logging.Level;

import officeserver.log_error.AppointmentException.REASON;
import officeserver.main.MODULE;

/**
 * @author mramsey3
 * 
 */
public class FileIOException extends OfficeException {
    public static enum REASON {
	SAVE_FAILURE, LOAD_FAILURE
    };

    private REASON reason;

    public FileIOException(Level level, REASON theReason, String message) {
	super(MODULE.OFFICE, level, theReason.toString() + message);
	reason = theReason;
    }

    public REASON getReason() {
	return reason;
    }
}
